package com.junzhiit.nengji.model;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.bainaeco.framework.base.model.BaseModel;
import com.bainaeco.framework.util.DateUtil;
import com.bainaeco.framework.util.serializer.CustomDateSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

public class MemberCard  extends BaseModel {

	private static final long serialVersionUID = -4237551084417425042L;

	private String csId;
	
	private String cardName;
	
	private Integer isFreeCarriage;
	
	private Integer isDiscount;
	
	private Double discount;
	
	private Integer isPresentCoupon;
	
	private String couponsId;
	
	private Integer couponsCount;
	
	private Integer activationState;
	
	private Integer isPhoneVerification;
	
	private Integer isPerfectMessage;
	
	private Integer grade;
	
	private Integer buyCount;
	
	private Double consumePrice;
	
	private Integer consumeIntegral;
	
	private Integer validTimeState;
	
	@DateTimeFormat(pattern = DateUtil.DATE_PATTERN_DEFAULT)
	@JsonSerialize(using = CustomDateSerializer.class)
	private Date openTime; 
	
	@DateTimeFormat(pattern = DateUtil.DATE_PATTERN_DEFAULT)
	@JsonSerialize(using = CustomDateSerializer.class)
	private Date validStartTime;
	
	@DateTimeFormat(pattern = DateUtil.DATE_PATTERN_DEFAULT)
	@JsonSerialize(using = CustomDateSerializer.class)
	private Date validEndTime;
	
	private Integer validDays;
	
	private String instruction;
	
	private Integer type;
	
	private Integer state;
	
	private Double price;
	
	private Integer cardGrade;
	
	public String getCardName() {
		return cardName;
	}

	public void setCardName(String cardName) {
		this.cardName = cardName;
	}

	public Integer getIsFreeCarriage() {
		return isFreeCarriage;
	}

	public void setIsFreeCarriage(Integer isFreeCarriage) {
		this.isFreeCarriage = isFreeCarriage;
	}

	public Integer getIsDiscount() {
		return isDiscount;
	}

	public void setIsDiscount(Integer isDiscount) {
		this.isDiscount = isDiscount;
	}

	public Double getDiscount() {
		return discount;
	}

	public void setDiscount(Double discount) {
		this.discount = discount;
	}

	public Integer getIsPresentCoupon() {
		return isPresentCoupon;
	}

	public void setIsPresentCoupon(Integer isPresentCoupon) {
		this.isPresentCoupon = isPresentCoupon;
	}

	public Integer getValidTimeState() {
		return validTimeState;
	}

	public void setValidTimeState(Integer validTimeState) {
		this.validTimeState = validTimeState;
	}

	public Date getOpenTime() {
		return openTime;
	}

	public void setOpenTime(Date openTime) {
		this.openTime = openTime;
	}

	public Date getValidStartTime() {
		return validStartTime;
	}

	public void setValidStartTime(Date validStartTime) {
		this.validStartTime = validStartTime;
	}

	public Date getValidEndTime() {
		return validEndTime;
	}

	public void setValidEndTime(Date validEndTime) {
		this.validEndTime = validEndTime;
	}

	public String getInstruction() {
		return instruction;
	}

	public void setInstruction(String instruction) {
		this.instruction = instruction;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Double getConsumePrice() {
		return consumePrice;
	}

	public void setConsumePrice(Double consumePrice) {
		this.consumePrice = consumePrice;
	}

	public Integer getBuyCount() {
		return buyCount;
	}

	public void setBuyCount(Integer buyCount) {
		this.buyCount = buyCount;
	}

	public Integer getConsumeIntegral() {
		return consumeIntegral;
	}

	public void setConsumeIntegral(Integer consumeIntegral) {
		this.consumeIntegral = consumeIntegral;
	}

	public Integer getGrade() {
		return grade;
	}

	public void setGrade(Integer grade) {
		this.grade = grade;
	}

	public Integer getActivationState() {
		return activationState;
	}

	public void setActivationState(Integer activationState) {
		this.activationState = activationState;
	}

	public Integer getIsPerfectMessage() {
		return isPerfectMessage;
	}

	public void setIsPerfectMessage(Integer isPerfectMessage) {
		this.isPerfectMessage = isPerfectMessage;
	}

	public Integer getIsPhoneVerification() {
		return isPhoneVerification;
	}

	public void setIsPhoneVerification(Integer isPhoneVerification) {
		this.isPhoneVerification = isPhoneVerification;
	}

	public Integer getCouponsCount() {
		return couponsCount;
	}

	public void setCouponsCount(Integer couponsCount) {
		this.couponsCount = couponsCount;
	}

	public String getCouponsId() {
		return couponsId;
	}

	public void setCouponsId(String couponsId) {
		this.couponsId = couponsId;
	}

	public Integer getValidDays() {
		return validDays;
	}

	public void setValidDays(Integer validDays) {
		this.validDays = validDays;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getCardGrade() {
		return cardGrade;
	}

	public void setCardGrade(Integer cardGrade) {
		this.cardGrade = cardGrade;
	}

	public String getCsId() {
		return csId;
	}

	public void setCsId(String csId) {
		this.csId = csId;
	}
}
